package com.dlc.shop.service;


import com.dlc.shop.common.bean.leaf.LeafAlloc;

import java.util.List;

/**
 * @author leaf
 */
public interface IDAllocDao {

    /**
     * com.mall4j.cloud.leaf.segment.dao.IDAllocMapper.getAllLeafAllocs
     * @return
     */
    List<LeafAlloc> getAllLeafAllocs();

    /**
     * updateMaxIdAndGetLeafAlloc
     *
     * @param tag    tag
     * @param length
     * @return LeafAlloc
     */
    LeafAlloc updateMaxIdAndGetLeafAlloc(String tag, int length);

    /**
     * updateMaxIdByCustomStepAndGetLeafAlloc
     *
     * @param leafAlloc leafAlloc
     * @param length
     * @return LeafAlloc
     */
    LeafAlloc updateMaxIdByCustomStepAndGetLeafAlloc(LeafAlloc leafAlloc, int length);

    /**
     * getAllTags
     * @return
     */
    List<String> getAllTags();

}
